﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModelGroupManage.aspx.cs"
    Inherits="Whir_System_Module_Contents_ModelGroupManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <whir:ezGridView ID="GridView1" runat="server" DataKeyNames="FormsID" AutoGenerateColumns="False"
            Width="99%">
            <HeaderStyle CssClass="grid_Title" Height="20px" />
            <RowStyle CssClass="grid_td" Height="23px" HorizontalAlign="Center" />
            <CustomColumns>
                <NumberColumn Align="Left" Position="0" Priority="0" Visible="False" Width="0" />
                <MultiChooseColumn Align="Left" Position="0" Priority="0" Visible="True" Width="0" />
                <RadioButtonColumn Align="Left" Position="0" Priority="0" Visible="False" Width="0" />
            </CustomColumns>
            <Columns>
                <asp:BoundField HeaderText="所在模块" DataField="ModuleMark" />
                <asp:BoundField HeaderText="复杂表单名称" DataField="GroupName" />
                <asp:TemplateField HeaderText="表单列表">
                    <itemtemplate>
                <%# GetModelFormNames(Eval("FormsGroup"))%>
                </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="管理操作">
                    <itemtemplate>
               <a href='ModelGroup.aspx?Action=Modify&ModelGroupFormsID=<%# Eval("FormsID") %>'>编辑</a>&nbsp;|&nbsp;<a
                                href='ModelGroup.aspx?Action=Delete&ModelGroupFormsID=<%# Eval("FormsID") %>'
                                onclick="return confirm('确定要删除吗？');">删除</a>
                </itemtemplate>
                </asp:TemplateField>
            </Columns>
        </whir:ezGridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="f-gray" CustomInfoHTML="目前在第<font color=red>%currentPageIndex%</font>页,共有<font color=red>%PageCount%</font>页,共有<font color=red>%RecordCount%</font>条记录&nbsp;&nbsp;&nbsp;&nbsp;"
            FirstPageText="第一页" LastPageText="最后一页" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
            PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Always" ShowPageIndex="False"
            AlwaysShow="True" Width="99%">
        </webdiyer:AspNetPager>
        <div class="command">
            <asp:Button ID="Button1" runat="server" Text="添加关联" CssClass="btn_default" OnClick="Button1_Click" />
            <asp:Button ID="btnCancel" runat="server" Text="返回" CssClass="btn_default" OnClick="btnCancel_Click" />
        </div>
    </form>
</body>
</html>
